package com.digiwin.dap.middleware.auth;

import java.io.Serializable;

public class AuthoredSys  implements Serializable {
    private long sid;
    private String id;

    public AuthoredSys(){

    }

    public AuthoredSys(long sid,String id){
      this.sid=sid;
      this.id=id;
    }

    public long getSid() {
        return sid;
    }

    public void setSid(long sid) {
        this.sid = sid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof AuthoredSys) {
            AuthoredSys test = (AuthoredSys)obj;
            //只要认为用户sid和租户sid相等，就可以认为相等
            if (this.getSid() == test.getSid() ) {
                return true;
            }
        }

        return false;
    }

    @Override
    public int hashCode() {
        return  (int)(sid);
    }
}
